import Vue from 'vue'
import store from './store'
import 'vant/lib/button/style';
import 'vant/lib/col/style';
import 'vant/lib/row/style';
import 'vant/lib/overlay/style';
import 'vant/lib/pull-refresh/style';
import 'vant/lib/swipe/style';
import 'vant/lib/swipe-item/style';
import 'vant/lib/tag/style';
import 'vant/lib/nav-bar/style';
import 'vant/lib/tab/style';
import 'vant/lib/tabs/style';
import 'vant/lib/tabbar/style';
import 'vant/lib/tabbar-item/style';
import 'vant/lib/search/style';
import 'vant/lib/icon/style';
import 'vant/lib/notify/style';
import 'vant/lib/lazyload/style';
import 'vant/lib/popup/style';
import 'vant/lib/sidebar/style';
import 'vant/lib/sidebar-item/style'
import 'vant/lib/list/style'
import 'vant/lib/share-sheet/style'
import 'vant/lib/cell/style'
import 'vant/lib/dropdown-item/style'
import 'vant/lib/dropdown-menu/style'
import 'vant/lib/empty/style'
import 'vant/lib/slider/style'
import 'vant/lib/grid/style'
import 'vant/lib/grid-item/style'
import 'vant/lib/image/style'
import 'vant/lib/loading/style'
import './app.scss'
import VueTouch from "vue-touch";

import { Button, Col, Row, Overlay, PullRefresh, Swipe, SwipeItem, Tag, NavBar, Tab, Tabs, Tabbar, TabbarItem, Search, Icon, Notify, Lazyload, Popup, Sidebar, SidebarItem, List, ShareSheet, Cell, DropdownMenu, DropdownItem, Empty, Slider, Grid, GridItem, Image as VanImage, Loading } from 'vant';

// Vue.config.productionTip = false

const App = new Vue({
  store,
  onShow(options) {
  },
  render(h) {
    // this.$slots.default 是将要会渲染的页面
    return h('block', this.$slots.default)
  }
})

Vue.use(VueTouch, { name: "v-touch" });
Vue.use(Button);
Vue.use(Col);
Vue.use(Row);
Vue.use(Overlay);
Vue.use(PullRefresh);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tag);
Vue.use(NavBar);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Search);
Vue.use(Icon);
Vue.use(Notify);
Vue.use(Lazyload, {
  lazyComponent: true,
});
Vue.use(Popup);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(List);
Vue.use(ShareSheet);
Vue.use(Cell);
Vue.use(Slider);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Empty);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(VanImage);
Vue.use(Loading);

export default App
